﻿using System.ComponentModel.DataAnnotations;

namespace Entity.ERP.DTO.PurchaseOrder
{
    /// <summary>
    /// 采购订单子单模型 - 新增
    /// </summary>
    public class PurchaseOrderItemAddDTO
    {
        /// <summary>
        /// 采购订单 ID
        /// </summary>
        [Required(ErrorMessage = "采购订单ID PurchaseOrderId不能为空")]
        public string PurchaseOrderId { get; set; }

        /// <summary>
        /// 流转卡号
        /// </summary>
        [Required(ErrorMessage = "流转卡号 CardNo不能为空")]
        public string CardNo { get; set; }

        /// <summary>
        /// 物料 ID
        /// </summary>
        [Required(ErrorMessage = "物料ID GoodsId不能为空")]
        public string GoodsId { get; set; }

        /// <summary>
        /// 采购数量
        /// </summary>
        [Required(ErrorMessage = "采购数量 NumberPurchase不能为空")]
        public decimal NumberPurchase { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string? Remark { get; set; }

        /// <summary>
        /// 附件
        /// </summary>
        public string? File { get; set; }
    }
}
